package com.xlh.vo.conclude;

/**
 * @author cfz
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * @author cfz
 */
@Data
@Accessors(chain = true)
@ApiModel("学生列表VO")
public class StudentListInfoVO {

    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty("序号")
    private Integer index;

    @ApiModelProperty("姓名")
    @Length(min = 1, max = 15, message = "学生姓名字符长度需在1~15之间")
    private String name;

    @ApiModelProperty("班级名称")
    @Length(min = 1, max = 15, message = "班级名称符长度需在1~15之间")
    private String className;

    @ApiModelProperty("学号")
    @Length(min = 1, max = 15, message = "学生学号符长度需在1~15之间")
    private String sno;

}
